package com.uetoken.cn.common;

/**
 * @author 谢杨
 * @time 2018/7/23 16:37
 * @class 描述:一些常量或者偏好设置中的key
 */
public class Constant {
    public static final String appId = "wxcec56cd9a22ca042";

    public static final int HANDLER_MESSAGE_WHAT_1100 = 1100;
    public static final int HANDLER_MESSAGE_WHAT_1101 = 1101;
    public static final int HANDLER_MESSAGE_WHAT_1102 = 1102;
    public static final int HANDLER_MESSAGE_WHAT_1103 = 1103;
    public static final int MIAN_PURSE_HIS = 0;//主钱包交易历史记录
    public static final int CHILD_PURSE_HIS = 1;//子钱包交易历史记录
    public static final int STOCK_OUT_HIS = 2;//用户出货历史记录
    public static final int CHARGE_CNV_HIS = 3;//获取CNV充值记录
    public static final int TRANSFER_OBJECTS_TO_SUB_PURSE = 0;//转账 子钱包内部转账
    public static final int TRANSFER_OBJECTS_TO_MAIN_PURSE = 1;//主钱包内部转账
    public static final int BATCH_TRANSFER_FAIL = 1;//批量转账失败
    public static final int BATCH_TRANSFER_SUCCEED = 2;//批量转账成功
    public static final int JS_WEB_TITLE = 1003;//批量转账成功

    /**
     * 是否测试模式的常量(true为测试模式，false为正式模式)
     */
    public static boolean isTestMode = false;
    /**
     * 保存用户信息的偏好设置文件名
     */
    public static final String UE_TOKEN_PREFERENCE_USER_INFO = "ue_token_preference_user_info";
    /**
     * 其他
     * 保存个推ID和APP是否第一次启动
     */
    public static final String UE_TOKEN_OTHER_USER_INFO = "ue_token_other_user_info";
    /**
     * 保存其他配置信息的偏好设置文件名
     */
    public static final String UE_TOKEN_PREFERENCE_OTHER_INFO = "ue_token_preference_other_info";
    /**
     * 保存省市区列表的偏好设置文件名
     */
    public static final String UE_TOKEN_PREFERENCE_AREAS_INFO = "ue_token_preference_other_info";

    /**
     * 获取配置信息传入的更新时间的key
     */
    public static final String SP_CONFIG_UPDATE_TIME = "sp_config_update_time";
    /**
     * app是否第一次启动的key
     */
    public static final String SP_APP_IS_FIRST_OPEN = "sp_app_is_first_open";
    /**
     * 是否登录的key
     */
    public static final String SP_WHETHER_LOGIN = "sp_whether_login";

    /**
     * 当前保存语言的key
     */
    public static final String SP_SAVE_LANGUAGE = "sp_save_language";
    /**
     * APPID,唯一
     */
    public static final String APPID = "81126";
    /**
     * clientId 安卓为2
     */
    public static final String CLIENT_ID = "2";
    /**
     * token 个推ID/唯一标记的key
     */
    public static final String SP_GE_TUI_TOKEN = "sp_ge_tui_token";
    /**
     * accesskeyid
     */
    public static final String ACCESSKEY_ID = "DdXWZ6xWuJ7WPXWhsrp1";
    /**
     * accesskeySecret
     */
    public static final String ACCESSKEY_SECRECT = "yitq4h17f3f0371cvw3atfuq2cl2pokf";
    /**
     * 保存配置信息
     */
    public static final String SP_CONFIG_INFO = "sp_config_info";
    /**
     * nodeid
     */
    public static final String SP_NODE_ID = "sp_node_id";
    /**
     * nodecode
     */
    public static final String SP_NODE_CODE = "sp_node_code";
    /**
     * nodename
     */
    public static final String SP_NODE_NAME = "sp_node_name";
    /**
     * 手机号
     */
    public static final String SP_MOBILE_NO = "sp_mobile_no";
    /**
     * 头像地址
     */
    public static final String SP_HEAD_PHOTO = "sp_head_photo";
    /**
     * 跳转到webview的url常量
     */
    public static final String TO_WEBVIEW_URL = "to_web_view_url";
    /**
     * 是否从第三方app跳转过来的
     */
    public static final String WHETHER_FROM_THRID_APP = "whether_from_third_app";

    /**
     * 第三方app跳转过来时区分优谷或者PCN的key
     */
    public static final String THRID_APP_MERCHANT = "third_app_merchant";
    /**
     * 绑定第三方账号 true：为是。反之不然
     */
    public static final String THRID_APP_BIND = "third_app_bind";
    /**
     * 第三方app跳转过来时携带的json字符串的key
     */
    public static final String THRID_APP_JSON_DATA = "third_app_json_data";
    /**
     * 第三方app跳转过来时actionType
     */
    public static final String THRID_APP_ACTION_TYPE = "third_app_action_type";
    /**
     * 第三方app跳转传过来的nodeID
     */
    public static final String THRID_APP_NODE_ID = "third_app_node_id";
    /**
     * 是否有支付密码
     */
    public static final String IS_PAY_PWD = "is_pay_pwd";
    /**
     * 切换模式的key
     */
    public static final String SP_MODE_CHANGE = "sp_mode_change";
    /**
     * 首页广告的key
     */
    public static final String SP_ADVERTISING = "sp_advertising";
    /**
     * 省市区列表的key
     */
    public static final String SP_AREA = "sp_area";
    /**
     * 最大免密金额
     */
    public static final String SP_MAXIMUM_SECRET_AMOUNT = "sp_maximum_secret_amount";
    /**
     * 未读消息数量
     */
    public static final String SP_NEWMAIL_NUM = "sp_newmail_num";
    /**
     * 开通了支付密码类型
     */
    public static final String SP_NOT_PWD_PAY_TYPE = "sp_not_pwd_pay_type";
    /**
     * 判断url是否是个有效地址的常量
     */
    public static final String URL_REGEX = "((http[s]{0,1}|ftp)://[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,4})(:\\d+)?(/[a-zA-Z0-9\\" +
            ".\\-~!@#$%^&*+?:_/=<>]*)?)|(www.[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,4})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)";
    /**
     * 第三方登入APP的名字
     */
    public static final String SP_TRIRDPARTY_APP_NAME = "sp_thirdparty_app_name";
    /**
     * 第三方APP请求授权
     */
    public static final String SP_TRIRDPARTY_APP_REQUEST_AUTHORIZATION = "sp_thirdparty_app_request_authorization";

    //***=========*钱包类型*=========***//
    public static final int DOS_INVENTORY_PURSE = 53;//DOS库存
    public static final int DOS_PURSE = 54;//DOS
    public static final int USDT_PURSE = 55;//USDT
    public static final int BTC_PURSE = 56;//BTC
    public static final int CNV_PURSE = 57;//CNV
    public static final int ETH_PURSE = 69;//ETH
    public static final int EOS_PURSE = 70;//EOS
    public static final int BCH_PURSE = 71;//BCH
    /**
     * 提币地址
     */
    public static final String SP_MENTION_MONEY_ADDRE = "sp_mention_money_address";//SP_ACCOUNT
    public static final String KEY_MENTION_MONEY_ADDRE = "key_mention_money_address_";//SP_ACCOUNT
}
